
type option_type = {
  url: string;
  methods: "POST" | "GET";      // 只能是这儿枚举出来的
};

function request(option: option_type) {
  console.log(option);
}

request({
    url:"123", 
    methods: "GET"
})

export {};
